Interactive Plotly with Pandas¶

Dataset from London Weather Data

Historical London weather data from 1979 to 2021

['date',
 'cloud_cover',
 'sunshine',
 'global_radiation',
 'max_temp',
 'mean_temp',
 'min_temp',
 'precipitation',
 'pressure',
 'snow_depth']
date mean_temp
0 1979-01-01 -4.1
1 1979-01-02 -2.6
2 1979-01-03 -2.8
3 1979-01-04 -2.6
4 1979-01-05 -0.8
... ... ...
15336 2020-12-27 7.5
15337 2020-12-28 1.1
15338 2020-12-29 2.6
15339 2020-12-30 2.7
15340 2020-12-31 -0.8

15341 rows × 2 columns

Using the express plotting interface:

Adding a slider for rolling average¶

Following from the Simple slider control example.